package com.hh.m15e.exception;

public class BusinessException extends RuntimeException {
    private final HttpStatusEnum statusEnum;
    private final Object[] args;

    public BusinessException(HttpStatusEnum statusEnum, Object... args) {
        super(statusEnum.getMessage());
        this.statusEnum = statusEnum;
        this.args = args;
    }

    public HttpStatusEnum getStatusEnum() {
        return statusEnum;
    }

    public Object[] getArgs() {
        return args;
    }
}